<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                >
    <h:panelGroup id="menu">
        <h:form prependId="false">
            <h:panelGrid columns="1" width="100%" border="0" cellpadding="0" cellspacing="0">
                <rich:toolbar height="26px">
                    <rich:dropDownMenu>
                        <f:facet name="label">
                            <h:panelGroup>
                                <h:outputText value="#{msg.menu_clientes_lbl}" />
                            </h:panelGroup>
                        </f:facet>
                        <rich:menuItem label="#{msg.menu_operacao_1}" action="/tabelas/pais.jsf" icon="/imagens/new16x16.png"/>
                        <rich:menuItem label="#{msg.menu_operacao_2}" action="/vendas/editarCliente.jsf" icon="/imagens/edit016x16.png"/>
                    </rich:dropDownMenu>
                    <rich:dropDownMenu>
                        <f:facet name="label">
                            <h:panelGroup>
                                <h:outputText value="#{msg.menu_fornecedores_lbl}" />
                            </h:panelGroup>
                        </f:facet>
                        <rich:menuItem label="#{msg.menu_operacao_1}" action="/compras/fornecedorNovo.jsf" icon="/imagens/new16x16.png"/>
                        <rich:menuItem label="#{msg.menu_operacao_2}" action="/vendas/editarCliente.jsf" icon="/imagens/edit016x16.png"/>
                    </rich:dropDownMenu>
                    <rich:dropDownMenu>
                        <f:facet name="label">
                            <h:panelGroup>
                                <h:outputText value="#{msg.menu_compras_lbl}" />
                            </h:panelGroup>
                        </f:facet>
                        <rich:menuItem label="#{msg.menu_operacao_1}" action="/tabelas/pais.jsf" icon="/imagens/new16x16.png"/>
                        <rich:menuItem label="#{msg.menu_operacao_2}" action="/vendas/editarCliente.jsf" icon="/imagens/edit016x16.png"/>
                        <rich:menuItem label="#{msg.menu_operacao_3}" action="/vendas/editarCliente.jsf" icon="/imagens/find16x16.png"/>
                    </rich:dropDownMenu>
                    <rich:dropDownMenu >
                        <f:facet name="label">
                            <h:panelGroup>
                                <h:outputText value="#{msg.menu_vendas_lbl}" />
                            </h:panelGroup>
                        </f:facet>
                        <rich:menuItem label="#{msg.menu_operacao_1}" action="/tabelas/pais.jsf" icon="/imagens/new16x16.png"/>
                        <rich:menuItem label="#{msg.menu_operacao_2}" action="/vendas/editarCliente.jsf" icon="/imagens/edit016x16.png"/>
                        <rich:menuItem label="#{msg.menu_operacao_3}" action="/vendas/editarCliente.jsf" icon="/imagens/find16x16.png"/>
                    </rich:dropDownMenu>
                    <rich:dropDownMenu>
                        <f:facet name="label">
                            <h:panelGroup>
                                <h:outputText value="#{msg.menu_encomendas_lbl}" />
                            </h:panelGroup>
                        </f:facet>
                        <rich:menuItem label="#{msg.menu_operacao_1}" action="/tabelas/pais.jsf" icon="/imagens/new16x16.png"/>
                        <rich:menuItem label="#{msg.menu_operacao_2}" action="/vendas/editarCliente.jsf" icon="/imagens/edit016x16.png"/>
                        <rich:menuItem label="#{msg.menu_operacao_3}" action="/vendas/editarCliente.jsf" icon="/imagens/find16x16.png"/>
                    </rich:dropDownMenu>
                    <rich:dropDownMenu >
                        <f:facet name="label">
                            <h:panelGroup>
                                <h:outputText value="#{msg.menu_administrar}"/>
                            </h:panelGroup>
                        </f:facet>
                        <rich:menuGroup label="#{msg.menu_tabelas}" icon="/imagens/config16x16.png" title="#{msg.menu_tabelas}">
                            <rich:menuItem label="#{msg.menu_pais_lbl}" action="/tabelas/pais.jsf" icon="/imagens/config16x16.png"/>
                            <rich:menuItem label="#{msg.menu_provincia_lbl}" action="/tabelas/provincia.jsf" icon="/imagens/config16x16.png"/>
                            <rich:menuItem label="#{msg.menu_fabricante_lbl}" action="/tabelas/fabricanteProduto.jsf" icon="/imagens/config16x16.png"/>
                            <rich:menuItem label="#{msg.menu_funcoes_lbl}" action="/tabelas/funcao.jsf" icon="/imagens/config16x16.png"/>
                            <rich:menuItem label="#{msg.menu_marcas_lbl}" action="/tabelas/marcaProduto.jsf" icon="/imagens/config16x16.png"/>
                            <rich:menuItem label="#{msg.menu_modelos_lbl}" action="/tabelas/modeloProduto.jsf" icon="/imagens/config16x16.png"/>
                            <rich:menuItem label="#{msg.menu_ctg_produto_lbl}" action="/tabelas/categoriaProduto.jsf" icon="/imagens/config16x16.png"/>
                            <rich:menuItem label="#{msg.menu_tipo_produto_lbl}" action="/tabelas/tipoProduto.jsf" icon="/imagens/config16x16.png"/>
                        </rich:menuGroup>
                        <rich:menuGroup label="#{msg.menu_produtos_lbl}" icon="/imagens/config16x16.png" title="#{msg.menu_produtos_lbl}">
                            <rich:menuItem label="#{msg.menu_operacao_1}" action="/produto/produtoNovo.jsf" icon="/imagens/new16x16.png"/>
                            <rich:menuItem label="#{msg.menu_operacao_2}" action="/produto/editarProduto.jsf" icon="/imagens/edit016x16.png"/>
                            <rich:menuItem label="#{msg.menu_operacao_3}" action="/vendas/editarCliente.jsf" icon="/imagens/find16x16.png"/>
                        </rich:menuGroup>
                        <rich:menuGroup label="#{msg.menu_funcionarios_lbl}" icon="/imagens/config16x16.png" title="#{msg.menu_funcionarios_lbl}">
                            <rich:menuItem label="#{msg.menu_operacao_1}" action="/tabelas/pais.jsf" icon="/imagens/new16x16.png"/>
                            <rich:menuItem label="#{msg.menu_operacao_2}" action="/vendas/editarCliente.jsf" icon="/imagens/edit016x16.png"/>
                            <rich:menuItem label="#{msg.menu_operacao_3}" action="/vendas/editarCliente.jsf" icon="/imagens/find16x16.png"/>
                        </rich:menuGroup>
                    </rich:dropDownMenu>
                    <rich:dropDownMenu>
                        <f:facet name="label">
                            <h:panelGroup>
                                <h:outputText value="#{msg.menu_ajuda}" />
                            </h:panelGroup>
                        </f:facet>
                        <rich:menuItem label="#{msg.menu_topicos_ajuda}" action="/tabelas/pais.jsf" icon="/imagens/info016x16.png"/>
                        <rich:menuItem label="#{msg.menu_sobre}" action="/tabelas/pais.jsf" icon="/imagens/info016x16.png"/>
                    </rich:dropDownMenu>
                </rich:toolbar>
            </h:panelGrid>
        </h:form>
    </h:panelGroup>
</ui:composition>

